function h = errorbar1(X, varargin)
%FIG_MAKE shortdesc.
%
%   wrapper
%
% @Requires:        <blank>
%   
% @Parameters:     	<blank> 
%
% @Example:         <blank>
%
% @See also:        <blank>
% 
% @Author:          Pete R Jones
%
% @Creation Date:	11/10/11
% @Last Update:     14/10/11
%
% @Todo:            <blank>
%
% also: errorbar(nanmean(X), nanerr(X));

    if length(varargin) > 1
        h = errorbar(X, varargin{:});
    elseif length(varargin) == 1
        h = errorbar(mean(X), err(X), varargin{1});
    else
        h = errorbar(mean(X), err(X));
    end
    
end